package com.ecoolex.ying.space.ws;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;
import com.ecoolex.ying.space.entity.UserFavorite;
import com.ecoolex.ying.space.pojo.AddUserFavoriteDTO;


public interface UserFavoriteService {

    UserFavorite getUserFavoriteByIdAndUserId(Integer userId, Integer favoriteId);

    Pagination<UserFavorite> queryUserFavoriteList(Integer userId, Sorting[] sorts, Page page);

    UserFavorite addUserFavorite(Integer userId, AddUserFavoriteDTO add, String createUser) throws BizException;

    UserFavorite editUserFavorite(UserFavorite record, String updateUser) throws BizException;

    void deleteUserFavorite(UserFavorite record, String updateUser) throws BizException;

    void setPublic(UserFavorite record, String updateUser) throws BizException;

    void cancelPublic(UserFavorite record, String updateUser) throws BizException;
}
